package com.cg.design.graphicdesignpattern.abstractfactory.factory;

/**
 * 抽象的零件：Link类(抽象的表示HTML的超链接类)
 *
 * @program: LeetCode->Link
 * @description: 抽象的零件：Link类(抽象的表示HTML的超链接类)
 * @author: cg
 * @create: 2022-03-21 20:40
 **/
public abstract class Link extends Item {
    /**
     * 保存的使超链接所指向的地址
     */
    protected String url;

    public Link(String caption, String url) {
        super(caption);
        this.url = url;
    }
}
